import { IsString, IsArray, IsOptional, IsBoolean } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class CreateRoleDto {
  @ApiProperty({ description: '角色名称' })
  @IsString()
  name: string;

  @ApiProperty({ description: '角色描述' })
  @IsString()
  @IsOptional()
  description?: string;

  @ApiProperty({ description: '权限列表' })
  @IsArray()
  permissions: string[];

  @ApiProperty({ description: '是否启用' })
  @IsBoolean()
  @IsOptional()
  isActive?: boolean;
} 